/**
 * 
 */
package com.apanal.qlife.org.service;

import java.util.List;

import com.apanal.qlife.common.page.Page;
import com.apanal.qlife.common.page.PageReturn;
import com.apanal.qlife.org.model.Organization;
import com.apanal.qlife.sys.model.User;

/**
 * @author Admin
 *
 */
public interface OrganizationService {
	
	public PageReturn<Organization> findOrganizationList(Organization organization,Page page);
	
	public long saveOrganization(User user,Organization organization);
	
	public PageReturn<Organization> findTrenchList(Organization organization,Page page);
	
	public PageReturn<Organization> findTenementList(Organization organization,Page page);
	
	public List<Organization> findOrgList(Organization organization);

	public PageReturn<Organization> findAudiListNo(Organization org, Page page);

	public Organization findOrganizationById(Organization org);

	public Organization findOrganization(Long orgId, Integer orgType);
	
	public Organization selectByPrimaryKey(Organization organization);
	
	public Organization selectTrench(Organization organization);
	
	public Integer update(User user,Organization organization);

	public Organization findPaltByUser(Long useId);

	public List<Organization> findAllPlat();

	public PageReturn<Organization> selectRelationForPage(Organization org,
			Page page);

	public List<Organization> selectByIds(String ids);
	
	/**
	 * 禁用启用
	 * @param organization
	 * @return
	 */
	public Integer updateByAuditStatus(Organization organization);

	public List<Organization> findAllQd();

	public Organization selectOrganizationById(Organization org);

	public String updateOrg(Organization orgz, User user, Organization org);

	public PageReturn<Organization> findAudiList(Organization org, Page page);

	public String deleteOrg(Long orgId);
    
	/**
	 * 根据当前登录用户获取待审核总条数的接口
	 * @param user
	 * @return
	 */
    public Integer selectCountAudit();
	
	

}
